﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OOAD_Project_Engine.Application.Services;
using OOAD_Project_Engine.Foundation.Interfaces;

namespace OOAD_Project_Editor.Domain.ManageSceneActions
{
    [Action(ActionType = EActionType.CutEntity)]
    class CutEntityAction : ManageSceneAction
    {
        IEntity cutEntity;
        public CutEntityAction(ISceneService scene, IEntity entity)
            : base(scene)
        {
            cutEntity = entity;
        }

        public override void DoAction()
        {
            EntityClipboard.GetInstance().SetEntity(cutEntity);
            Scene.Manager.Remove(cutEntity);
        }
    }
}
